<?php
/**
 * PSA config override file with customized settings.
 * See psa/config.php for description of these values.
 */

/**
 * Include application config file.
 */
require_once $PSA_CFG['folders']['basedir'] . '/../config.php';


$PSA_CFG['pdo']['dsn']      = "mysql:host=localhost;port=3306;dbname=mydatabase";
$PSA_CFG['pdo']['driver_options'] = array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8", PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION);
$PSA_CFG['pdo']['username'] = 'database_user';
$PSA_CFG['pdo']['password'] = 'database_pass';

//$PSA_CFG['folders']['basedir_web'] = ''; // Without '/' at the end. Example: /webroot/myapp

$PSA_CFG['develop_mode'] = 1;

$PSA_CFG['profile_log'] = 0;

$PSA_CFG['logging']['max_log_level'] = 10;

$PSA_CFG['folders']['plugins'][] = '../models';
$PSA_CFG['folders']['plugins'][] = '../views';
$PSA_CFG['folders']['plugins'][] = '../controllers';

$PSA_CFG['router_location'] = '..';


/**
 * Simplesamlphp setttings
 * This should be in application config.php file but I put it here because it is installation specific.
 */
$CFG_schema = "http://";
if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on')
	$CFG_schema = 'https://';
$CFG['simplesamlphp']['after_sso_login_url']  = $CFG_schema . $_SERVER['HTTP_HOST'] . $PSA_CFG['folders']['basedir_web'] . '/?aaieduhr_sso_login';
$CFG['simplesamlphp']['after_sso_logout_url'] = $CFG_schema . $_SERVER['HTTP_HOST'] . $PSA_CFG['folders']['basedir_web'] . '/dologout';

$CFG['simplesamlphp']['authentication_source'] = 'default-sp';
$CFG['simplesamlphp']['include'] = 'D:/WEBROOT/simplesamlphp_1.6.2/lib/_autoload.php';


